package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbAdviceWay entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_ADVICE_WAY", schema = "dbo", catalog = "AGDB")
public class TbAdviceWay implements java.io.Serializable {

	// Fields

	private String awId;
	private String awAdviceWay;
	private String a;
	private String b;
	private String c;
	private Set<TbDisposalAdvice> tbDisposalAdvices = new HashSet<TbDisposalAdvice>(
			0);

	// Constructors

	/** default constructor */
	public TbAdviceWay() {
	}

	/** minimal constructor */
	public TbAdviceWay(String awId) {
		this.awId = awId;
	}

	/** full constructor */
	public TbAdviceWay(String awId, String awAdviceWay, String a, String b,
			String c, Set<TbDisposalAdvice> tbDisposalAdvices) {
		this.awId = awId;
		this.awAdviceWay = awAdviceWay;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbDisposalAdvices = tbDisposalAdvices;
	}

	// Property accessors
	@Id
	@Column(name = "AW_ID", unique = true, nullable = false, length = 4)
	public String getAwId() {
		return this.awId;
	}

	public void setAwId(String awId) {
		this.awId = awId;
	}

	@Column(name = "AW_ADVICE_WAY", length = 30)
	public String getAwAdviceWay() {
		return this.awAdviceWay;
	}

	public void setAwAdviceWay(String awAdviceWay) {
		this.awAdviceWay = awAdviceWay;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbAdviceWay")
	public Set<TbDisposalAdvice> getTbDisposalAdvices() {
		return this.tbDisposalAdvices;
	}

	public void setTbDisposalAdvices(Set<TbDisposalAdvice> tbDisposalAdvices) {
		this.tbDisposalAdvices = tbDisposalAdvices;
	}

}